package cn.edu.tju.fctl.util;

import java.util.Date;

/**
 * Created by H on 2015/12/26.
 */
public class Evaluation {

    private int userId;
    private Date fromDate,toDate;
    private double[] leaveHours;
    private double outHour;
    private double absentHour;
    private double overHour;

    public Evaluation(int userId, Date fromDate, Date toDate){
        this.userId = userId;
        this.fromDate = fromDate;
        this.toDate = toDate;
        leaveHours = new double[VacationTypeUtil.VACATIONTYPENUM];
        for(int i = 0;i < VacationTypeUtil.VACATIONTYPENUM;++i){
            leaveHours[i] = 0;
        }
        outHour = 0;
        absentHour = 0;
        overHour = 0;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }

    public double[] getLeaveHours() {
        return leaveHours;
    }

    public void setLeaveHours(double[] leaveHours) {
        this.leaveHours = leaveHours;
    }

    public double getOutHour() {
        return outHour;
    }

    public void setOutHour(double outHour) {
        this.outHour = outHour;
    }

    public double getAbsentHour() {
        return absentHour;
    }

    public void setAbsentHour(double absentHour) {
        this.absentHour = absentHour;
    }

    public double getOverHour() {
        return overHour;
    }

    public void setOverHour(double overHour) {
        this.overHour = overHour;
    }
}
